package com.manage.modules.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.manage.modules.domain.TBaseFaultPhoto;

import java.util.Collection;
import java.util.List;

/**
 * 故障信息照片Service接口
 *
 * @author xu
 * 2021/8/19 10:13
 */
public interface ITBaseFaultPhotoService extends IService<TBaseFaultPhoto> {
    /**
     * 根据故障ID删除
     */
    boolean deleteByFaultId(Long faultId);

    /**
     * 根据故障ID查询
     */
    List<TBaseFaultPhoto> findByFaultId(Long faultId);

    /**
     * 根据故障ID集合删除
     */
    void deleteByFaultIds(Collection<Long> ids);

    void delete(List<TBaseFaultPhoto> photoList);
}
